<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://eureka.yigolden.net/stringutils/sutaglib/1.0" prefix="su"%>
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->

    <title>查看个人信息</title>

    <!-- Bootstrap core CSS -->
    <link href="<%=request.getContextPath() %>/static/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="<%=request.getContextPath() %>/static/css/signin.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="<%=request.getContextPath() %>/static/js/html5shiv.min.js"></script>
      <script src="<%=request.getContextPath() %>/static/js/respond.min.js"></script>
    <![endif]-->
  
    
  </head>

  <body>
<jsp:include page="../Common/navHeader.jsp"></jsp:include>
  <div class="container">
	<h1 style="font-family:华文行楷;" >好室友<small>网</small> </h1>
	<c:if test="${userDetail ne null }">
    <div class="row">
		<div class="col-sm-3">
		</div>
		<div class="col-sm-6">
		<form class="form-horizontal" method="post" onsubmit="return submitForm();">
        <input type="hidden" name="action" value="detailinfo" />    
             
        <div class="table-responsive">
          <table class="table">
            <tr>
              <td class="col-sm-4">真实姓名：</td>
              <td class="text-center col-sm-8"  >${fn:escapeXml(userDetail.realname) }</td>
            </tr>
            <tr>
              <td>性别：</td>
              <td class="text-center">${fn:escapeXml(userDetail.gender) }</td>
            </tr>
            <tr>
              <td>出生日期：</td>
              <td class="text-center">${fn:escapeXml(userDetail.birthday) }</td>
            </tr>
            
            
            <tr>
              <td>政治面貌：</td>
              <td class="text-center">${fn:escapeXml(userDetail.belief) }</td>
            </tr>
            <tr>
              <td>民族：</td>
              <td class="text-center">${fn:escapeXml(userDetail.nation) }</td>
            </tr>
             <tr>
              <td>联系电话：</td>
              <td class="text-center">${fn:escapeXml(userDetail.telphone) }</td>
            </tr>
            
             <tr>
              <td>QQ：</td>
              <td class="text-center">${fn:escapeXml(userDetail.qq )}</td>
            </tr>
            
             <tr>
              <td>Email：</td>
              <td class="text-center">${fn:escapeXml(userDetail.email )}</td>
            </tr>
            
             <tr>
              <td>详细地址：</td>
              <td class="text-center">${fn:escapeXml(userDetail.address) }</td>
            </tr>
            
             <tr>
              <td>就读院校：</td>
              <td class="text-center">${fn:escapeXml(userDetail.universityName) }</td>
            </tr>
            
             <tr>
              <td>所学专业：</td>
              <td class="text-center">${fn:escapeXml(userDetail.major) }</td>
            </tr>
            <tr>
              <td>寝室号：</td>
              <td class="text-center">${fn:escapeXml(userDetail.domitory) }</td>
            </tr>
          </table>
        </div>

  		<div class="form-group">
    		<div class="row">
      			<div class="col-sm-12" style="text-align:center">
      				<a href="<%=request.getContextPath()%>/"><button type="button" class="btn btn-warning">返回首页</button></a>
      			</div>	
    		</div>
  		</div>
        
        
        <input type="hidden" name="referrer" value="${su:encodeUriComponent(referer) }" />
        
      </form>
      </div>
      <div class="col-sm-3"></div>
     </div>
	</c:if>
	<c:if test="${userDetail eq null }">
	 	<div class="form-group">
    		<div class="col-sm-3"></div>
    		<div class="col-sm-6">
    			<h3>抱歉，该用户尚未添加个人信息！请下次再来！</h3>
    		</div>
    		<div class="col-sm-3"></div>
  		</div>  
	</c:if>
    </div> <!-- /container -->

	<script src="<%=request.getContextPath() %>/static/js/jquery.min.js" ></script>
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script src="<%=request.getContextPath() %>/static/js/ie10-viewport-bug-workaround.js"></script>
  </body>
</html>